#!/usr/bin/env python
"""
# -*- coding: utf-8 -*-
# @Time    : 2020/10/12 11:12
# @Author  : AshJo
# @Desc    : 守护线程
# @Filename: thread_demo.py
# @Version : v1.0
"""

import time
from threading import Thread


def son():
    while True:
        print('in son')
        time.sleep(1)


def son2():
    for i in range(3):
        print('in son2 ***')
        time.sleep(1)


if __name__ == '__main__':
    t = Thread(target=son)
    t.daemon = True
    t.start()
    Thread(target=son2).start()
